<!--
 * @Description: 
 * @Author: Cxy
 * @Date: 2025-08-19 19:56:57
 * @LastEditors: Cxy
 * @LastEditTime: 2025-08-19 20:01:52
 * @FilePath: \xy-admin\docs\elecomponents\form\date\year.vue
-->
<script lang="ts" setup>
import { reactive } from 'vue'
const formList = reactive<FormList>([
  {
    label: '单个年',
    prop: 'year',
    type: 'year',
    defaultValue: new Date(1994, 1, 1),
    disabledDate: ({ value }) => value.getTime() > Date.now()
  }
])
const submitForm = (formData: any) => {
  console.log(formData)
}
</script>
<template>
  <XyAddForm isCard :formList="formList" @submit-form="submitForm" />
</template>
